namespace LowCoding.Dto.Sys
{
    /// <summary>
    /// 角色模块表
    /// </summary>
    public class SysRightOutput
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public string RgtRoleId { get; set; }

        /// <summary>
        /// 模块ID
        /// </summary>
        public string RgtMdlId { get; set; }

        /// <summary>
        /// ID
        /// </summary>
        public string Id { get; set; }
    }

    public class TreeSysRightDto
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MdlName { get; set; }

        /// <summary>
        /// 是否拥有权限
        /// </summary>
        public bool? HasRights { get; set; }

        /// <summary>
        /// 子菜单集合
        /// </summary>
        public List<TreeSysRightDto> children { get; set; }

        /// <summary>
        /// 按钮集合
        /// </summary>
        public List<TreeSysRightDto> Functions { get; set; }
    }
}